package com.season.summer.bspgenerator.entity;

import com.season.summer.bspgenerator.entity.ColumnEntity;

import java.util.List;

/**
 * 表数据
 *
 */

public class TableEntity {
	//表的名称
	private String tableName;
	private String engine;
	private String createTime;
	//表的备注
	private String tableComment;
	//表的主键
	private ColumnEntity pk;
	//key(不包含主键)
	private List<ColumnEntity> keys;

	public List<ColumnEntity> getKeys() {
		return keys;
	}

	public void setKeys(List<ColumnEntity> keys) {
		this.keys = keys;
	}

	//表的列名(不包含主键)
	private List<ColumnEntity> columns;
	
	//类名(第一个字母大写)，如：sys_user => UserDO
	private String className;
	//类名(第一个字母小写)，如：sys_user => sysUser
	private String classname;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getEngine() {
		return engine;
	}

	public void setEngine(String engine) {
		this.engine = engine;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getTableComment() {
		return tableComment;
	}

	public void setTableComment(String tableComment) {
		this.tableComment = tableComment;
	}

	public ColumnEntity getPk() {
		return pk;
	}

	public void setPk(ColumnEntity pk) {
		this.pk = pk;
	}

	public List<ColumnEntity> getColumns() {
		return columns;
	}

	public void setColumns(List<ColumnEntity> columns) {
		this.columns = columns;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getClassname() {
		return classname;
	}

	public void setClassname(String classname) {
		this.classname = classname;
	}
}
